styleproperty: Add _gtk_style_property_get_initial_value()
authorBenjamin Otte <otte@redhat.com>
Thu, 29 Dec 2011 13:04:19 +0000 (14:04 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 9 Jan 2012 17:37:50 +0000 (18:37 +0100)
gtk/gtkstyleproperty.c
gtk/gtkstylepropertyprivate.h

index 518a0e42c3f0c47d192271fdca9ca58bead11f50..5eade848a04f25dce25e82853421c1406f414a4a 100644 (file)
@@ -2605,6 +2605,14 @@ _gtk_style_property_resolve (const GtkStyleProperty *property,
   g_value_copy (val, val_out);
 }
 
+const GValue *
+_gtk_style_property_get_initial_value (const GtkStyleProperty *property)
+{
+  g_return_val_if_fail (property != NULL, NULL);
+
+  return &property->initial_value;
+}
+
 gboolean
 _gtk_style_property_is_shorthand  (const GtkStyleProperty *property)
 {
index faa0e5bdf17a32d997f672e9fe6f8c8bcfc027da..e34c20859bdb5645594e9df7f860f59e86e6a886 100644 (file)
@@ -82,6 +82,8 @@ void                     _gtk_style_property_default_value (const GtkStyleProper
                                                             GtkStyleProperties     *properties,
                                                             GtkStateFlags           state,
                                                             GValue                 *value);
+const GValue *           _gtk_style_property_get_initial_value
+                                                           (const GtkStyleProperty *property);
 
 void                     _gtk_style_property_resolve       (const GtkStyleProperty *property,
                                                             GtkStyleProperties     *properties,